; S3 Graphics Windows HdAudio INF file
; Copyright (c) S3 Graphics Co., Ltd. All rights reserved.

[Version]
Signature="$Windows NT$"
Class=MEDIA
ClassGuid={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%S3GRAPHICS%
CatalogFile=S3GHDAUDIO64.CAT
DriverVer=07/15/2010,5.10.00.3506

[DestinationDirs]
DefaultDestDir      =10; dirid = \system32\drivers
S3HdAudModel.CopyList =10,system32\drivers

[SourceDisksNames]
222=%DiskId1%,"",222

[SourceDisksFiles]
S3GHDAudio64.sys=222

[Manufacturer]
%S3GRAPHICS%=S3G.Mfg,NTamd64

;============================================================================

[ControlFlags]
ExcludeFromSelect = *

[S3G.Mfg.NTamd64]

%HdAudioFunctionDriver.DDKCodec.DeviceDesc% = S3HdAudModel,HDAUDIO\FUNC_01&VEN_5333&DEV_1111&SUBSYS_01090707
%HdAudioFunctionDriver.DDKCodec.DeviceDesc% = S3HdAudModel,HDAUDIO\FUNC_01&VEN_5333&DEV_9F82&SUBSYS_01090707



[S3HdAudModel]
Include=ks.inf,wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration
CopyFiles = S3HdAudModel.CopyList
AddReg    = S3HdAudModel.AddReg, S3HdAudInit.AddReg

[S3HdAudModel.HW]
AddReg = S3HdAudSecurity.AddReg

[S3HdAudModel.Services]
AddService=S3HdAudAddService, 0x00000002, S3HdAud_Service_Install

[S3HdAud_Service_Install]
DisplayName   = %UAAFunctionDriverForHdAudio.SvcDesc%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
ServiceBinary = %10%\system32\drivers\S3GHDAudio64.sys

[S3HdAudModel.CopyList]
S3GHDAudio64.sys

[S3HdAudInit.AddReg]
;; Sample Section to Illustrate the format for Initialization verbs.
;; Uncomment and add appropriate verbs as needed.
;; Note that the top nibble of the verb (Codec Address) must be '0'.
;HKR,InitVerbs,NumVerbs,0x00010001, 0x00000004 ; Example: Number of verbs in the init section
;HKR,InitVerbs,0000,    0x00010001, 0x01E71C01 ; Sets first byte of pin config info
;HKR,InitVerbs,0001,    0x00010001, 0x01E71D44 ; Sets second byte of pin config info
;HKR,InitVerbs,0002,    0x00010001, 0x01E71E21 ; Sets third byte of pin config info
;HKR,InitVerbs,0003,    0x00010001, 0x01E71F00 ; Sets fourth byte of pin config info

[S3HdAudModel.AddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,S3GHDAudio64.sys

HKR,Drivers,SubClasses,,"wave,midi,mixer,aux"

HKR,Drivers\wave\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\midi\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\mixer\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\aux\wdmaud.drv,Driver,,wdmaud.drv

HKR,Drivers\wave\wdmaud.drv,Description,,%HdAudioDeviceDescription%
HKR,Drivers\midi\wdmaud.drv,Description,,%HdAudioDeviceDescription%
HKR,Drivers\mixer\wdmaud.drv,Description,,%HdAudioDeviceDescription%
HKR,Drivers\aux\wdmaud.drv,Description,,%HdAudioDeviceDescription%

HKR,,SetupPreferredAudioDevices,3,01,00,00,00
HKR,,DisableSetupDiChangeState,1,00,00,00,00 ; Set to 01,00,00,00 to disable proppage restarting of driver on policy change
; Driver global settings

HKR,PowerSettings,ConservationIdleTime,1,1e,00,00,00
HKR,PowerSettings,PerformanceIdleTime,1,2c,01,00,00
HKR,PowerSettings,IdlePowerState,1,04,00,00,00

[S3HdAudModel.Interfaces]

AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_DigitalOutputWave%, S3HdAudModel.DigitalOutputWave
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_DigitalOutputWave%, S3HdAudModel.DigitalOutputWave
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_DigitalOutputTopo%, S3HdAudModel.DigitalOutputTopo
AddInterface=%KSCATEGORY_TOPOLOGY%,%KSNAME_DigitalOutputTopo%, S3HdAudModel.DigitalOutputTopo

; Digital output

[S3HdAudModel.DigitalOutputWave]
AddReg = S3HdAudModel.DigitalOutputWave.AddReg

[S3HdAudModel.DigitalOutputWave.AddReg]
HKR,,FriendlyName,,%DigitalOutputWaveDeviceName%
HKR,,CLSID,,%Proxy.CLSID%

[S3HdAudModel.DigitalOutputTopo]
AddReg = S3HdAudModel.DigitalOutputTopo.AddReg

[S3HdAudModel.DigitalOutputTopo.AddReg]
HKR,,FriendlyName,,%DigitalOutputTopoDeviceName%
HKR,,CLSID,,%Proxy.CLSID%

[S3HdAudSecurity.AddReg]
; FILE_DEVICE_SOUND
HKR,,DeviceType,0x10001,0x0000001D
; SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_RWX_RES_RWX
HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GRGWGX;;;WD)(A;;GRGWGX;;;RC)"

[Strings]
RunDisplayName="High Definition Audio Property Page Shortcut" ; {PlaceHolder="High Definition Audio"}
DiskId1 = "UAA Function Driver for High Definition Audio. Installation Disk" ; {PlaceHolder="UAA","High Definition Audio"}

HdAudioFunctionDriver.DDKCodec.DeviceDesc = "S3 Codec Driver for High Definition Audio" ; {PlaceHolder="UAA","High Definition Audio"}

UAAFunctionDriverForHdAudio.SvcDesc = "S3 Codec Driver for High Definition Audio " ; {PlaceHolder="UAA","High Definition Audio"}

DigitalOutputWaveDeviceName =      "S3G High Definition Audio" ; {PlaceHolder="HD Audio"}

DigitalOutputTopoDeviceName =      "S3G High Definition Audio mixer" ; {PlaceHolder="HD Audio"}

HdAudioDeviceDescription = "S3 Codec Driver for High Definition Audio" ; {PlaceHolder="UAA","High Definition Audio"}

KSNAME_DigitalOutputWave = "DigitalOutputWave" ; non-localizable

KSNAME_DigitalOutputTopo = "DigitalOutputTopo" ; non-localizable

KSCATEGORY_AUDIO = "{6994AD04-93EF-11D0-A3CC-00A0C9223196}" ; non-localizable
KSCATEGORY_RENDER = "{65E8773E-8F56-11D0-A3B9-00A0C9223196}" ; non-localizable
KSCATEGORY_CAPTURE = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}" ; non-localizable
KSCATEGORY_TOPOLOGY = "{DDA54A40-1E4C-11D1-A050-405705C10000}" ; non-localizable
Proxy.CLSID = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}" ; non-localizable

S3GRAPHICS = "S3 Graphics Co. Ltd."
